@import "base";
@import "tooltip";
@import "notify";
@import "comment";
@import "message_box";


header{
    box-shadow: 0 0 10px 1px #333;
}

#book_filter {
    //  padding-bottom: 20px;
    .conditions {
        overflow: hidden;
        height: 46px;
        margin-bottom: 10px;
    }
    .filter-input-box {
        float: left;
        display: inline-block;
    }
    .book-sort {
        text-align: center;
        width: 84px;
        background-color: @CL_SORT_BG;
        color: @CL_SORT_TEXT;
        float: right;
        height: 31px;
        line-height: 31px;
        position: relative;
        cursor: pointer;

        .current-sort:after {
            content: "\e150";
            font-family: 'Glyphicons Halflings';
            font-size: 12px;
            padding: 0 5px;
        }
        ul {
            position: absolute;
            top: 31px;
            right: 0px;
            display: none;
            z-index: 3;
            overflow-x: auto;
            li {
                width: 120px;
                background-color: @CL_SORT_ITEM_BG;
                margin: 1px 0;
                &:hover {
                    background-color: @CL_SORT_ITEM_BG_HVR;
                    color: @CL_SORT_ITEM_TEXT_HVR;
                }
            }
        }
        &:hover {
            background-color: @CL_SORT_BG_HVR;
            ul {
                display: block;
            }
        }
    }
}

.book-area {

}

.book-list {
    clear: both;
    .book-item {
        height: 110px;
        position: relative;
        padding: 10px;
        clear: both;
        background-color: rgb(250, 250, 250);
        h5 {
            height: 24px;
            overflow: hidden;
        }
        h5, p {
            display: inline-block;
            width: 100%;
            margin: 0;
        }
        .author {
            img.avatar {
                background-color: @CL_IMG_BG;
                width: 16px;
                height: 16px;
            }
        }
        .description {
            margin: 0px;
            line-height: 13px;
            font-size: 12px;
            max-height: 26px;
            overflow: hidden;
        }
        .explorer-info {
            font-size: 11px;
            position: absolute;
            bottom: 0px;
        }
        .action-bar {
            display: none;
            position: absolute;
            bottom: 8px;
            right: 30px;
            width: 136px;
            .action {
                background-color: @CL_TAG_BG_HVR;
                float: right;
                cursor: pointer;
                display: inline-block;
                border: 1px solid @CL_TAG_BG_HVR;
                padding: 1px 6px 0px 6px;
                margin: 3px;
                color: #fff;
                line-height: 12px;
                font-size: 11px;
                &:hover {
                    background-color: #fff;
                    color: @CL_TAG_TEXT;
                    &.undo{
                        border-color: @CL_UNDO;
                        color: @CL_UNDO;
                    }
                }
            }
        }
        &.active{
            background-color: rgb(255, 255, 255);
            border-right-color: #fff;
        }
        &:hover {
            background-color: rgb(255, 255, 255);
            .action-bar {
                display: block;
            }
        }
        i.show-page{
            position: absolute;
            right: 10px;
            top: 15px;
            cursor: pointer;
        }
    }
}

.action {
    cursor: pointer;
    display: inline-block;
    border: 1px solid #ccc;
    padding: 3px 6px 0px 6px;
    &:hover {
        background-color: #eee;
    }
}

span[data-type="username"] {
    color: @CL_UN;
    cursor: pointer;
}

.create_form {
    width: 530px;
    margin: 100px auto;
    label {
        width: 100%;
        display: table;
        input, button {
            width: 100%;
            height: 36px;
            padding-left: 10px;
            box-sizing: border-box;
            line-height: 26px;
            font-size: 18px;
            margin-bottom: 10px;
        }
    }
}

.chapter-list {
    li.chapter-item {
        margin-bottom: 3px;
        padding: 5px;
        font-size: 16px;
        .btn-favorite {
            float: right;
            margin: 0 5px;
        }
        .btn-like {
            float: right;
        }
        .author-action {
            display: none;
            color: #ccc;
        }
        &:hover {
            background-color: @CL_CH_ITEM_BG_HVR;
            a{
                color: @CL_CH_ITEM_TEXT_HVR;
            }
            .author-action {
                display: inline;
            }
        }
    }
}

.chapter-detail{
    .title{
        text-align: center;
        margin: 10px  0;
    }
    .text{
        padding: 15px;
        font-size: 16px;
        line-height: 30px;
        p{
            margin: 0;
            padding: 0;
        }
    }

}

#account_page_cover {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    .upload-co {
        display: none;
        position: absolute;
        top: 10px;
        background: #333;
        color: #fff;
        width: 150px;
        height: 28px;
        line-height: 28px;
        text-align: center;
        right: 50px;
        input {
            opacity: 0;
            width: 100%;
            height: 100%;
            padding: 0px;
            margin: 0px;
            margin-top: -28px;
            cursor: pointer;
        }
    }
    &:hover {
        .upload-co {
            display: block;
        }
    }
}

#account_center_avatar {
    text-align: center;
    padding-top: 30px;
    div.avatar {
        position: relative;
        display: inline-block;
        margin-top: -100px;
        border: 4px solid @CL_IMG_BD;
        img {
            background-color: @CL_IMG_BG;
            width: 168px;
            height: 168px;
            cursor: pointer;
        }
        .upload-co {
            display: none;
            position: absolute;
            bottom: 0px;
            height: 50px;
            background-color: #333;
            text-align: center;
            width: 100%;
            color: #fff;
            line-height: 50px;
            font-size: 16px;
            cursor: pointer;
            input {
                opacity: 0;
                width: 100%;
                height: 100%;
                margin-top: -50px;
                cursor: pointer;
            }
        }
        &:hover {
            .upload-co {
                display: block;
            }
        }
    }
}

#account_center_baseinfo {

    input[type="radio"] {
        //    float: left;
        margin-top: -2px;
        margin-left: 10px;
        margin-right: 5px;
    }
}

#book_preview{
    background-color: #fff;
    height: 90%;
    overflow-y: auto;
    .book-preview-page{
        .block-space{
            margin-bottom: 10px;
            .block-header{
                clear: both;
                background-color: @CL_BLOCK_HEADER_BG;
                padding: 3px 0 0 5px;
                color: #fff;
            }
        }
        .recent-chapter{
            .text{
                background-color: #efefef;
                border-radius: 5px;
                padding: 10px;
                margin: 0 0 10px 0;
            }
        }
        .recent-visitor{
            .avatar-list{
                img.avatar{
                    width: 41px;
                    height: 41px;
                    background-color: @CL_IMG_BG;
                    border: 1px solid @CL_IMG_BD;
                    cursor: pointer;
                }
            }
        }
    }
}

.space-grid {
    .grid;
    display: table;
    padding: 10px;
    width: 100%;
    .attr-name {
        color: #999;
        text-align: right;
    }
}

.profile-book-list {
    .profile-book {
        margin: 3px 0;
        display: table;
        width: 100%;
        img, span {
            float: left;
        }
        span {
            width: 50%;
            margin-left: 5px;
        }
        span.datetime {
            font-size: 11px;
            color: #696969;
        }
        span.like-count {
            font-size: 10px;
            color: #696969;
            b {
                color: #66c;
                cursor: pointer;
            }
        }
    }
}
